<?php
namespace app\api\model;

use think\Model;
use think\Db;

class ClubModel extends Model
{
    function clublist(){
        $result=Db::name('club')->select();
        return $result;
    }
    function clubdetail($clubid) {
        $club =  db('club')->where('clubid', $clubid)->find();
        return $club;
    }
}